Skip to content

Conversation

anegg0
Copy link
Contributor

@anegg0 anegg0 commented Jul 31, 2025

The cool src/scripts/update-variable-references.ts brings this repo closer to catching up with OCL's latest tools releases.
The only issue is that it can open multiple PRs (sometimes duplicative)

This PR is an attempt at improving the process by doing the following:

  • First run: Creates branch docs/update-dependencies and PR with title "chore: update dependencies to latest versions"
  • Subsequent runs: Find the existing open PR, update the branch with the latest changes, and update the PR body with current dependency information
  • After PR is merged/closed: Next run will create a fresh PR since no open PR exists

Copy link

vercel bot commented Jul 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
arbitrum-docs Ready Ready Preview Sep 9, 2025 7:43pm

Copilot

This comment was marked as outdated.

@anegg0 anegg0 requested a review from Copilot July 31, 2025 16:57
Copilot

This comment was marked as outdated.

@anegg0 anegg0 requested a review from Copilot July 31, 2025 17:00
Copilot

This comment was marked as outdated.

@anegg0 anegg0 requested a review from Copilot July 31, 2025 17:07
Copilot

This comment was marked as outdated.

@anegg0 anegg0 requested a review from Copilot July 31, 2025 17:10
Copilot

This comment was marked as outdated.

@anegg0 anegg0 requested a review from Copilot July 31, 2025 17:39
Copilot

This comment was marked as outdated.

@anegg0 anegg0 requested a review from Copilot July 31, 2025 17:51
Copilot

This comment was marked as outdated.

@anegg0 anegg0 requested a review from Copilot July 31, 2025 18:13
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the dependency update process by preventing multiple duplicate PRs. Instead of creating a new PR each time, the script now creates a single persistent branch and PR that gets updated with the latest dependency information.

Key changes:

  • Creates a single persistent branch docs/update-dependencies and PR with standardized title
  • Updates existing open PRs instead of creating new ones when dependencies change
  • Adds backup branch creation to preserve commits when updating branches

@anegg0 anegg0 changed the title update dependencies update-dependencies-github-action to avoid openig multiple PRs update-dependencies-github-action to avoid openig multiple PRs Aug 8, 2025
@anegg0 anegg0 marked this pull request as draft August 8, 2025 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants